package year2019.month0567;

import org.junit.Test;

/**
 * @desc 描述
 * create on 2019/6/28 by watson
 */
public class ExceptionTest {

    @Test
    public void test(){
        System.out.println("return："+fun());
    }

    public String fun(){
        try {
            System.out.println("fun");
            throw new RuntimeException("exception");
        } catch (Exception e){
            System.out.println(e.getMessage());
            return e.getMessage();
        } finally {
            System.out.println("finally");
            return "finally";
        }
    }

}
